<?php
class Servicemanager_Model_Deletecurrentservice implements Servicemanager_Model_Mainable{
    
    private $excepted_result = 1;
    private $current_result;
    
    private $servicemanager_data_deletecurrentservice;
    
    public function main(array $variables = null) {
        $this->servicemanager_data_deletecurrentservice = new Servicemanager_Data_Deletecurrentservice;
        $this->current_result = $this->servicemanager_data_deletecurrentservice->main($variables);
        if(
                $this->current_result == $this->excepted_result
                ){
            header("Location: ".SITE_ROOT."zarzadzaj-uslugami.html");
        }
        else {
            header("Location: ".SITE_ROOT."zarzadzaj-uslugami.html");
        }
    }

}
